//*******************************************************************
//        模    块: 模块
//        版权所有: 版权所有(C)2008-2009
//        公    司: 
//        内容摘要: 没有内容说明
//        其他说明: 其它内容的说明
//        创建时间：2014年05月DD日 22时49分17秒
//        修改记录1: 修改历史记录，包括修改日期、修改者及修改内容
//        <pre>
//           修改日期：
//           版 本 号：
//           修 改 人：
//           修改内容：
//        </pre>
//        @version 1.0
//        @author  
//        @Email   
//********************************************************************

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CP.DBService;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;

namespace LF3.Moduls
{
    /// <summary>
	/// 精炼炉次计划
	/// </summary>
	[DataContract]
	public class Lf_Schedule
	{
		/// <summary>
		/// 计划号,MES下达的计划号
		/// </summary>
		[Column(IsPrimaryKey=true, Name="1", DbType="INTEGER(10) NOT NULL")]
		[DataMember]
		public long bofscheduleid { get ; set; }
		/// <summary>
		/// 制造命令号
		/// </summary>
		[Column(DbType="VARCHAR2(7)")]
		[DataMember]
		public string pono { get ; set; }
		/// <summary>
		/// 内部钢种
		/// </summary>
		[Column(DbType="VARCHAR2(16)")]
		[DataMember]
		public string steelgrade { get ; set; }
		/// <summary>
		/// 标准号,According StandardNo and AlphaNo to find Standard Chemical Element
		/// </summary>
		[Column(DbType="VARCHAR2(20)")]
		[DataMember]
		public string standardno { get ; set; }
		/// <summary>
		/// 炉次号
		/// </summary>
		[Column(DbType="VARCHAR2(20)")]
		[DataMember]
		public string heatid { get ; set; }
		/// <summary>
		/// 计划精炼路径
		/// </summary>
		[Column(DbType="VARCHAR2(12)")]
		[DataMember]
		public string smeltroute { get ; set; }
		/// <summary>
		/// 转炉号,BOF1,BOF2,BOF3
		/// </summary>
		[Column(DbType="VARCHAR2(4)")]
		[DataMember]
		public string bofid { get ; set; }
		/// <summary>
		/// 转炉处理开始时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planbofstarttime { get ; set; }
		/// <summary>
		/// 转炉处理结束时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planbofendtime { get ; set; }
		/// <summary>
		/// 计划出钢量
		/// </summary>
		[Column(DbType="INTEGER(6)")]
		[DataMember]
		public int planheatweight { get ; set; }
		/// <summary>
		/// LF处理开始时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planlfstarttime { get ; set; }
		/// <summary>
		/// LF处理结束时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planlfendtime { get ; set; }
		/// <summary>
		/// RH处理开始时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planrhstarttime { get ; set; }
		/// <summary>
		/// RH处理结束时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planrhendtime { get ; set; }
		/// <summary>
		/// 连铸机号
		/// </summary>
		[Column(DbType="VARCHAR2(4)")]
		[DataMember]
		public string casterno { get ; set; }
		/// <summary>
		/// 计划浇次号(cast no)
		/// </summary>
		[Column(DbType="VARCHAR2(6)")]
		[DataMember]
		public string plancastno { get ; set; }
		/// <summary>
		/// 浇次内总炉数
		/// </summary>
		[Column(DbType="INTEGER(3)")]
		[DataMember]
		public int heatnumberincast { get ; set; }
		/// <summary>
		/// 浇次内顺序号
		/// </summary>
		[Column(DbType="INTEGER(3)")]
		[DataMember]
		public int sequencenoincast { get ; set; }
		/// <summary>
		/// 执行标准
		/// </summary>
		[Column(DbType="VARCHAR2(50)")]
		[DataMember]
		public string executestandard { get ; set; }
		/// <summary>
		/// 计划钢包打开时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planladleopentime { get ; set; }
		/// <summary>
		/// 计划钢包关闭时刻
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string planladleclosetime { get ; set; }
		/// <summary>
		/// 插入时间
		/// </summary>
		[Column(DbType="DATE(7)")]
		[DataMember]
		public DateTime? insert_time { get ; set; }
		/// <summary>
		/// 处理标志(=0 未处理;=1 已转炉出钢; =2正在处理 ;=3处理结束;=4炉次返送;=5连铸结束)
		/// </summary>
		[Column(DbType="VARCHAR2(1)")]
		[DataMember]
		public string heat_status { get ; set; }
		/// <summary>
		/// 转炉出钢时间
		/// </summary>
		[Column(DbType="VARCHAR2(14)")]
		[DataMember]
		public string tappingtime { get ; set; }
		/// <summary>
		/// 牌号
		/// </summary>
		[Column(DbType="VARCHAR2(50)")]
		[DataMember]
		public string sg_sign { get ; set; }
 
		public Lf_Schedule()
		{
			pono = "";
			steelgrade = "";
			standardno = "";
			heatid = "";
			smeltroute = "";
			bofid = "";
			planbofstarttime = "";
			planbofendtime = "";
			planlfstarttime = "";
			planlfendtime = "";
			planrhstarttime = "";
			planrhendtime = "";
			casterno = "";
			plancastno = "";
			executestandard = "";
			planladleopentime = "";
			planladleclosetime = "";
			heat_status = "";
			tappingtime = "";
			sg_sign = "";
		}
	}


    /// <summary>
	/// 精炼炉次计划服务
	/// </summary>
	public class Lf_ScheduleService : DataService<Lf_Schedule>
	{
	
	}

}
